package com.jsnu.xiaochi.service;

import com.jsnu.xiaochi.dao.UserMapper;
import com.jsnu.xiaochi.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RegisterServiceImpl implements RegisterService {
    @Resource
    UserMapper userMapper;

    @Override
    public int userRegister(User user) {
        System.out.println(user);
        return userMapper.insertSelective(user);
    }

}